#ifndef __TextString__h__included__
#define __TextString__h__included__

#include <string>
using std::string;

#include "Image.h"
using neiderra::rendering::Image;

namespace neiderra { 
	namespace rendering {
		
		class RenderingFont;
		// penx peny
		class TextString {
			public:
				TextString(const string&);
				virtual ~TextString();
				
				void SetFont(RenderingFont* font) {_font = font; }
				void SetString(const string& s) {_str = s;}
				void SetImage(Image* img){_rendered = img;}
				
				const char* GetString() const { return _str.c_str(); }
				RenderingFont* GetFont() {return _font; }
				int GetLength(){return _str.length();}
				Image* GetImage() {return _rendered;}
				
			private:
				string _str;
				RenderingFont* _font;
				Image* _rendered;
		};
		
	}
}

#endif
